
export class SplitLayoutModel {
    split_id: number;
    txt: string;
    url: string;
    router: string;
    is_login: boolean;
    child_id: number;
    bt_state: number;

    constructor() {
    }

    getFieldTypeMap():  Map<string, string> {
        let fieldTypeMap = new Map<string, string>();
        fieldTypeMap.set('split_id', 'Integer');
        fieldTypeMap.set('txt', 'String');
        fieldTypeMap.set('url', 'String');
        fieldTypeMap.set('router', 'String');
        fieldTypeMap.set('is_login', 'Boolean');
        fieldTypeMap.set('child_id', 'Integer');
        fieldTypeMap.set('bt_state', 'Integer');
        return fieldTypeMap;
    }

    getClassName(): string {
        return 'split_layout';
    }

    getPrimaryKeyList(): string[] {
        let primaryKeyList: string[] = [];
        primaryKeyList.push('split_id');
        return primaryKeyList;
    }

    getIndexList(): string[] {
        let indexList: string[] = [];
        indexList.push('split_id');
        return indexList;
    }

    getEncryptedFieldList(): string[] {
        let encryptedFieldList: string[] = [];
        return encryptedFieldList;
    }

    setSplit_id(split_id: number): void {
        this.split_id = split_id;
    }

    getSplit_id(): number  {
        return this.split_id;
    }

    setTxt(txt: string): void {
        this.txt = txt;
    }

    getTxt(): string  {
        return this.txt;
    }

    setUrl(url: string): void {
        this.url = url;
    }

    getUrl(): string  {
        return this.url;
    }

    setRouter(router: string): void {
        this.router = router;
    }

    getRouter(): string  {
        return this.router;
    }

    setIs_login(is_login: boolean): void {
        this.is_login = is_login;
    }

    getIs_login(): boolean  {
        return this.is_login;
    }

    setChild_id(child_id: number): void {
        this.child_id = child_id;
    }

    getChild_id(): number  {
        return this.child_id;
    }

    setBt_state(bt_state: number): void {
        this.bt_state = bt_state;
    }

    getBt_state(): number  {
        return this.bt_state;
    }

    static parseFrom(inputObject: any): SplitLayoutModel {
        let result = new SplitLayoutModel();
        if (!inputObject) {
            return result;
        }
        if (inputObject.split_id) {
            result.split_id = inputObject.split_id;
        }
        if (inputObject.txt) {
            result.txt = inputObject.txt;
        }
        if (inputObject.url) {
            result.url = inputObject.url;
        }
        if (inputObject.router) {
            result.router = inputObject.router;
        }
        if (inputObject.is_login) {
            result.is_login = inputObject.is_login;
        }
        if (inputObject.child_id) {
            result.child_id = inputObject.child_id;
        }
        if (inputObject.bt_state) {
            result.bt_state = inputObject.bt_state;
        }
        return result;
    }
}
